<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('')" />
    <!--    <th:block th:include="include :: bootstrap-select-css" />-->
</head>
<body class="signin">
<div class="signinpanel">
    <div class="row  border-bottom white-bg dashboard-header"  >
        <div class="col-sm-4" style="width: 15%;height:70px;background-color: #87CEFA;margin-right: 1%;margin-top: 1%;border-radius:10px" th:each="d : ${detailList}" th:onclick="chooseWareHouse([[${d.wareHouseId}]])">
            <ul style="list-style:none;">
                <li>
                    <h4>[[${d.name}]]</h4>
                </li>
                <li>位置：[[${d.location}]]</li>
            </ul>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "warehouse/stock";
    function chooseWareHouse(param) {
        console.log(param);
        var url = ctx + "warehouse/stock";
        $.modal.openTab("库存信息", url+"/toview?stockHouseId="+param);
        // $.ajax({
        //     // url:prefix + "/query",
        //     url:prefix + "/list",
        //     type:"POST",
        //     data:{
        //         'stockHouseId':param
        //     },
        //     success:function (data) {
        //         console.log(data);
        //     },
        //     error: function(error) {
        //         $.modal.alertWarning("失败");
        //     },
        // })
        };
</script>
</body>
</html>